package com.cn.sort;

import java.util.Random;

/***
 * @author: hels
 * @description:
 * @date: 2022-9-22 15:54
 **/
public class Sort1 {
    static int[] arr = new int[11];


    /**
    冒泡排序
     */
    public static void bubbleSort() {
        int bigIndex = arr.length - 1;
        for (int i = 0; i < arr.length; i++) {

        }

    }

    public static void swap(int[] arr, int i, int j) {
        int tmp = arr[i];
        arr[i] = arr[j];
        arr[j] = tmp;
    }

    public static void setArr() {
        Random random = new Random();
        for (int i = 0; i < 11; i++) {
            arr[i] = random.nextInt(20);
            System.out.print(arr[i] + " ");
        }
    }
}

